﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using B10.Models.Validation;

namespace B10.Models
{
    public enum PageStatus
    {
        Created,
        Published,
        Accepted,
        Deny
    }

    [MetadataType(typeof(UserPageValidation))]
    public partial class UserPage
    {
        internal bool IsOwner(int? userId)
        {
            return this._ProfileId == userId;
        }
    }
}
